﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InfoResourceUploader.aspx.cs"
	ClassName="InfoResourceUploader" Inherits="Hxsoft.AppV1._Controls.InfoResourceUploader" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>
		<%= TitleText %></title>
	<style type="text/css">
		body
		{
			margin: 0;
			border: 0;
			padding: 0;
		}
		form
		{
			margin: 0;
			border: 0;
			padding: 0;
		}
	</style>

	<script type="text/javascript" src="<%# ResolveUrl("~/J/List.js") %>"></script>

	<script language="javascript" type="text/javascript">
	<!--
		function ReloadPage() {
			var btReload = document.getElementById("<%# BtReload.ClientID %>");
			if (btReload)
				btReload.click();
		}
	-->
	</script>

</head>
<body>
	<form id="UploadForm" runat="server">

	<script type="text/javascript">
    <asp:Literal ID="CtrCallbackScript" EnableViewState="false" runat="server">
    </asp:Literal>
	</script>

	<asp:FileUpload ID="CtrFileUploader" runat="server" />
	<asp:CheckBox ID="CtrHasWatermark" runat="server" />
	<Hxctr:UploadFileTypeValidator ID="CtrFileUploaderUploadTypeValidator" runat="server"
		ControlToValidate="CtrFileUploader" SetFocusOnError="True" Display="None"></Hxctr:UploadFileTypeValidator>
	<asp:CustomValidator ID="CtrFileUploaderUploadMaxSizeValidator" runat="server" ErrorMessage="CustomValidator"
		ControlToValidate="CtrFileUploader" Display="None" OnServerValidate="CtrFileUploaderUploadMaxSizeValidator_ServerValidate"
		SetFocusOnError="True"></asp:CustomValidator>
	<asp:CustomValidator ID="CtrRightValidator" runat="server" ControlToValidate="CtrFileUploader"
		Display="None" OnServerValidate="CtrRightValidator_ServerValidate" SetFocusOnError="True"></asp:CustomValidator>
	<span class="<%= IsPicLibraryDetail?"":"unPicLibraryDetail"%>">
		<asp:CheckBox ID="CtrAddPicLibrary" runat="server" Text="加入图库" />
		<asp:DropDownList ID="CtrlPhotoSubject" runat="server">
		</asp:DropDownList>
		<input onclick="javascript:OpenWindowCenter(&quot;<%=AddPhotoSubjectUrl %>&quot;);"
			type="button" value="添加图库" />
	</span>
	<asp:Button ID="CtrSubmit" runat="server" OnClick="CtrSubmit_Click" />
	<asp:ValidationSummary ID="CtrValidationSummary" runat="server" ShowMessageBox="True"
		ShowSummary="False" />
	<span style="display: none;">
		<asp:Button ID="BtReload" runat="server" Text="刷新" OnClick="BtReload_Click" />
	</span>
	</form>
</body>
</html>
